<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="css/register.css" type="text/css"
			media="all" />
		<title>查看相册</title>
		<style type="text/css">
<!--
body {
	background-image: url("image/background.jpg");
}
-->
</style>
	</head>

	<body>
	<div>
			您好：
			<s:property value="#session.user.name" />
			&nbsp;
			<a href="manage.action">管理博客</a>&nbsp;<a href="logout.action">退出</a>
			<div align="right">
				<form action="query.action" method="post">
					<input type="text" name="name">
					<select name="type">
						<option value="1">
							用户名
						</option>
						<option value="2">
							博文
						</option>
						<option value="3">
							相册
						</option>
					</select>
					<input type="submit" value="搜索">
				</form>
			</div>
		</div>
		<div align="center">
			<a href="manage.action">首页</a>|
			<a href="checkArticles.action">日志</a> |
			<a href="checkAlbums.action">相册</a>|
			<a href="checkArticleClasses.action">个人中心</a>
		</div>
		<div id="shell">
			<div id="main" class="big-box">
				<div class="bg-top">
					<div class="bg-bottom">
						<div class="logo">
							<span class="logoimg"></span>
							<a href="index.html" title="新浪博客" class="logolink"></a>
						</div>
						<div class="logotxt">
							<s:property value="#session.user.name" />
							's Blog
						</div>
						<div class="clearit"></div>
					</div>
					<div class="main">
						<div class="mainCenTl">
							<table width="100%">
								<tr>
									<td width="22%" class="left_navig">
										<!--相册列表-->
										<table class="left_tab" border="1">
											<tr>
												<td height="10px"></td>
											</tr>
											<th width="180" align="left">
												相册列表
											</th>
											<s:iterator value="#request.albums">
												<tr>
													<td>
														<a
															href="checkAlbum.action?album.id=<s:property value="id"/>"><s:property
																value="title" /> </a>&nbsp;
																
															<a
															href="getAlbum.action?album.id=<s:property value="id"/>">修改</a>
															<a
															href="deleteAlbum.action?album.id=<s:property value="id"/>">删除</a>
														<br />
														<s:property value="description" />
													</td>
												</tr>
											</s:iterator>
											<tr>
												<td>
													<a href="addAlbum.action">创建相册</a>
												</td>
											</tr>
											<tr>
												<td height="10px"></td>
											</tr>
										</table>
									</td>
									<td width="78%" align="center">

									</td>
								</tr>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>

	</body>
</html>